﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SPStyleCop.Test;
using SPStyleCop;

namespace SPStyleCop.UnitTest
{
    [TestClass]
    public class SPQueryRulesTest : BaseUnitTest<String>
    {
        [TestMethod]
        public void TestMethod1()
        {
            this.SetTargetFile(@"TestData\MustStartWithiNet.cs");
            this.AddExpectation("NameSpaceMustStartWithInet", 6);
            this.Analyze();
            this.ValidateExpectations();
        }

        protected override void TestSetup()
        {
            SetBaseProjectSettingFile("Settings.StyleCop");
        }
    }
}
